home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
tsqed16.zip
/
SPELL.QMA
< prev
next >
Wrap
Text File
|
1991-12-26
|
2KB
|
53 lines
* All rights reserved
* Spell-check the current QEdit file
* By Timo Salmi Thu 26-Dec-91
*
* To compile this macro apply QMAC SPELL.MAC SPELL.QMA /A- /B
*
* To use this command macro you need the following programs and files
* QMAC.EXE macro compiler from /pc/editor/qmac215.zip (v2.1 is ok)
* SPELL.EXE, SPELLED3.DNY, SHORT.DNY from /pc/ts/tschek14.zip
* LIST.COM from garbo.uwasa.fi:/pc/fileutil/list76b.zip
*
* Before compiling the macro, edit the paths (c:\sanat) to conform to
* where you have your files.
*
* To make these macros available you can e.g. first invoke the main
* menu (usually F10) and select Macro: Read Macro: spell.mac. Then you
* can invoke them with ALT-5 or ALT-6. Or you can make ALT-5 part of
* your key default key definition file. (See @- in QEDTSH.KEY and
* QEdit documentation for the details)
* ┌─────────────────────────────────────────────────┐
* │ Check the spelling of a saved QEdit file, ALT-5 │
* └─────────────────────────────────────────────────┘
@5 MacroBegin
Dos 'c:\sanat\spell c:\sanat\spelled3.dny /f '
CurrentFilename
' | list /s'
Return
* ┌────────────────────────────────────────────────────────┐
* │ Extended checking of the spelling, handling cases like │
* │ wouldn't, shouldn't, I'll etc, ALT-6 │
* └────────────────────────────────────────────────────────┘
@6 MacroBegin
*
* Check with the ordinary dictionary and put results into a
* temporary file
Dos 'c:\sanat\spell c:\sanat\spelled3.dny '
CurrentFilename
' r:\$spell.tmp /b'
Return Return
*
* Check the spelling of the temporary file using the second
* dictionary, which includes the special cases like shouldn and ll.
Dos 'c:\sanat\spell c:\sanat\short.dny '
' r:\$spell.tmp /f'
' | list /s'
Return Return
*
* Delete the temporary file
Dos 'del r:\$spell.tmp'
Return Return